//
//  Register_Personal_iPad_ViewController.h
//  chilemat
//
//  Created by Cristian Gonzalez Figueroa on 05-05-14.
//  Copyright (c) 2014 Chilemat SpA. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <sqlite3.h>

@interface Register_Personal_iPad_ViewController : UIViewController <UITextFieldDelegate, UIPickerViewDelegate, UIPickerViewDataSource>{
    sqlite3 *bd;
}

@property (weak, nonatomic) IBOutlet UITextField *textNames;

@property (weak, nonatomic) IBOutlet UITextField *textLastName;

@property (weak, nonatomic) IBOutlet UITextField *textRut;

@property (weak, nonatomic) IBOutlet UITextField *textNumber;

@property (weak, nonatomic) IBOutlet UITextField *textDay;

@property (weak, nonatomic) IBOutlet UITextField *textMonth;

@property (weak, nonatomic) IBOutlet UITextField *textYear;

@property (weak, nonatomic) IBOutlet UIView *viewPicker;

@property (strong, nonatomic) IBOutlet UIPickerView *pickerView;

@property (weak, nonatomic) IBOutlet UIButton *btnComuna;

@property (weak, nonatomic) IBOutlet UITextField *textStreet;

@property (weak, nonatomic) IBOutlet UITextField *textNumberStreet;

@property (weak, nonatomic) IBOutlet UITextField *textReference;

@property (weak, nonatomic) IBOutlet UIBarButtonItem *backBarButtonItem;

@property (weak, nonatomic) IBOutlet UISegmentedControl *segmentedSexOption;

@property (weak, nonatomic) IBOutlet UISegmentedControl *segmentedFormaPago;

@property (nonatomic, strong) NSMutableArray *dataArray;

@property (nonatomic, strong) NSMutableArray *dataArrayId;

@property (nonatomic, strong) NSMutableArray *json;

@property (nonatomic, strong) NSMutableArray *jsonDireccionCliente;

@property (weak, nonatomic) IBOutlet UITextField *textEmail;


- (IBAction)callNumber:(id)sender;

- (IBAction)showPickerComuna:(id)sender;

- (IBAction)closeViewPicker:(id)sender;

- (IBAction)registerLogon:(id)sender;

//---------------------------------------------------------------------

- (IBAction)changePhoneNumber:(id)sender;

- (IBAction)changeDay:(id)sender;

- (IBAction)changeMonth:(id)sender;

- (IBAction)changeYear:(id)sender;

- (IBAction)endChangeYear:(id)sender;

- (IBAction)changeSexOption:(id)sender;

- (IBAction)changeStreetNumber:(id)sender;

- (IBAction)changeStreet:(id)sender;

- (IBAction)changeReference:(id)sender;

- (IBAction)backAction:(id)sender;

- (IBAction)register:(id)sender;

- (void) retrieveClient;


//---------------------------------------------------------------------






@end
